<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>背景样式</title>
  <style>
    article {
      border: dashed 3px black;
      padding: 30px;
      height: 500px;
      background-color: rgba(255, 0, 0, 0.5);
      background-clip: content-box;
    }
  </style>
</head>

<body>  
  <article>
    <h2>houdunren.com</h2>

  </article>
</body>

</html>